package chaohuaxishi;

/**
 * @author oldliu
 * @since 1.0
 */
public class Son extends Father {
    //重写

     public void a(){
     //可以
         System.out.println("This is son.a");
     }
//     public void b()throws Exception{
//        //不可以
//     }
public static void main(String[] args)   {
    Father s=new Son();
    try {
        s.a();
    } catch (Exception e) {
        e.printStackTrace();
    }
    Son s2=new Son();
    s2.a();
}
}
